/*
封装 网络请求
*/
const bastUrl = 'https://www.520gongfu.com/api'
// 封装 微信请求 
export const feach = (path, data = null, method = 'GET') => { // ES6 形参设置默认值
    return new Promise((resolve, reject) => {
        wx.request({
            url: bastUrl + path,
            data,
            method,
            header: {
                Authorization: getApp().token
            },
            success: resolve,
            fail: reject
        })
    })
}